package com.st.model;

import java.util.Date;

/**
 * LjwFriendTId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class LjwFriendTId implements java.io.Serializable {

	// Fields

	private Integer friendId;
	private Integer ownerId;
	private Date creationDate;
	private String friendRemarkName;

	// Constructors

	/** default constructor */
	public LjwFriendTId() {
	}

	/** full constructor */
	public LjwFriendTId(Integer friendId, Integer ownerId, Date creationDate,
			String friendRemarkName) {
		this.friendId = friendId;
		this.ownerId = ownerId;
		this.creationDate = creationDate;
		this.friendRemarkName = friendRemarkName;
	}

	// Property accessors

	public Integer getFriendId() {
		return this.friendId;
	}

	public void setFriendId(Integer friendId) {
		this.friendId = friendId;
	}

	public Integer getOwnerId() {
		return this.ownerId;
	}

	public void setOwnerId(Integer ownerId) {
		this.ownerId = ownerId;
	}

	public Date getCreationDate() {
		return this.creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public String getFriendRemarkName() {
		return this.friendRemarkName;
	}

	public void setFriendRemarkName(String friendRemarkName) {
		this.friendRemarkName = friendRemarkName;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof LjwFriendTId))
			return false;
		LjwFriendTId castOther = (LjwFriendTId) other;

		return ((this.getFriendId() == castOther.getFriendId()) || (this
				.getFriendId() != null
				&& castOther.getFriendId() != null && this.getFriendId()
				.equals(castOther.getFriendId())))
				&& ((this.getOwnerId() == castOther.getOwnerId()) || (this
						.getOwnerId() != null
						&& castOther.getOwnerId() != null && this.getOwnerId()
						.equals(castOther.getOwnerId())))
				&& ((this.getCreationDate() == castOther.getCreationDate()) || (this
						.getCreationDate() != null
						&& castOther.getCreationDate() != null && this
						.getCreationDate().equals(castOther.getCreationDate())))
				&& ((this.getFriendRemarkName() == castOther
						.getFriendRemarkName()) || (this.getFriendRemarkName() != null
						&& castOther.getFriendRemarkName() != null && this
						.getFriendRemarkName().equals(
								castOther.getFriendRemarkName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getFriendId() == null ? 0 : this.getFriendId().hashCode());
		result = 37 * result
				+ (getOwnerId() == null ? 0 : this.getOwnerId().hashCode());
		result = 37
				* result
				+ (getCreationDate() == null ? 0 : this.getCreationDate()
						.hashCode());
		result = 37
				* result
				+ (getFriendRemarkName() == null ? 0 : this
						.getFriendRemarkName().hashCode());
		return result;
	}

}